<div class="div_form">
<div class="admin-left-menu">
    <h2>Assets management</h2>
    <a href="index.php?m=manage_device" <?if($a=='index'):?>class="selected"<?endif?>>View devices</a> 
    <a href="index.php?m=manage_device&a=create" <?if($a=='create'):?>class="selected"<?endif?>>Create new device</a> 

</div>
     
<div class="admin-left-menu">
    <h2>Grouping by type</h2>
    <?foreach ($postsl as $pl):?>
    <a href="index.php?m=manage_device&a=index&group=<?=$pl['groupdevice']?>" <?if($group==$pl['groupdevice']):?>class="selected"<?endif?>><?=$pl['category_name']?> (<?=$pl['total']?>)</a>
    <?endforeach?>
</div>

</div>        
